﻿/*
   HiganUi is a GUI for the popular Higan emulators. The idea is to make the emulating experience 
   much better. All credit to the emulation goes to Hyuu.
 
   Copyright (C) <year>  <Sean Green>

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software Foundation,
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA

 * */


using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace HiganUI
{
    static class HiganUI
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        //[STAThread]
        //[DllImport( "snes.dll" )]
        //static extern
        static void Main()
        {
            //check for files, prevents crash.
            if (!File.Exists( "SharpDX.DirectInput.dll" )) MessageBox.Show( "missing - SharpDX.DirectInput.dll." );
            if (!File.Exists( "ObjectListView.dll" )) MessageBox.Show( "missing - ObjectListView.dll." );
            if (!File.Exists( "SevenZipSharp.dll" )) MessageBox.Show( "missing - SevenZipSharp.dll." );
            if (!File.Exists( "SharpDX.DirectInput.dll" )) MessageBox.Show( "missing - SharpDX.DirectInput.dll." );
            if (!File.Exists( "SharpDX.dll" )) MessageBox.Show( "missing - SharpDX.dll." );
            if (!File.Exists( "7z.dll")) MessageBox.Show("missing - 7z.dll.");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault( false );
            
            splashScreen sp= new splashScreen(); 
            sp.Show();
            Application.Run( new Form1( sp) );
        }
    }
}
